



function to_str(obj) {
    var output = "";
    for (property in obj) {
        output += property + ": " + obj[property] + "; ";
    }
    return output;    
}

function on_inds_updated(job_info, inds) {
    $('body').append($('<h2></h2>').text("on_inds_updated"));
    $('body').append($('<p></p>').text(to_str(job_info)));
    for (var i = 0; i < inds.length; i++) {
        $('body').append($('<p></p>').text(to_str(inds[i])));
    }
}

function cur_job_changed(job_info) {
    $('body').append($('<h2></h2>').text("cur_job_changed"));
    $('body').append($('<p></p>').text(to_str(job_info)));
}


/*
$(document).ready(function() {
    
    $('#refreshBtn').click(function() {
        console.log("Refresh button is clicked");
        dexen.reload();
    });

});
*/